"""
xpath路径定位:
路径:
针对于html   最终父路径(根目录): html
绝对路径:  /html/body/div/p/a/span/em      符号: /
相对路径:  //html//em     最低是父子, em 是html的后代
"""

import time


from selenium import webdriver
from selenium.webdriver.common.by import By


driver=webdriver.Edge()
driver.get("http://localhost:8081/regA.html")

# xpath属性
ele=driver.find_element(By.XPATH,"//*[text()='电话号码：']")
ele.send_keys("admin")
# 4 关闭浏览器驱动对象
time.sleep(10)  #代码暂停10s中
driver.quit()
